package indi.zhifa.study2025.oa.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.engine.core.common.ann.enums.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@EnumDesc(name = "菜单类型")
@RequiredArgsConstructor
public enum EMenuType {

    MODULE(1,"模块", "模块"),
    PAGE(2, "页面", "页面"),
    BUTTON(3, "按钮", "按钮"),
    REQUEST(4, "请求", "请求"),
    RESOURCE(5, "资源", "资源"),
    LOGIC(6, "逻辑节点", "逻辑节点"),
    ROOT(7,"根节点","根节点");

    @EnumValue
    @Getter
    private final int code;
    @Getter
    private final String name;
    @Getter
    private final String description;
}
